package com.atguigu.gmall.item.client.degrade;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.item.client.ItemFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description: 远程调用降级处理
 * @Author: Mr.Cao
 * @DateTime: 2021/10/11 20:41
 * BMW F750GS
 **/
@Component
@Slf4j
public class ItemDegradeFeignClient implements ItemFeignClient {
    @Override
    public Map getItem(Long skuId) {
        log.error("降级处理");
        return new HashMap();
    }
}
